<?php
	$name = $_POST['name'];
	$DB_HOST = $_POST['DB_HOST'];
    $DB_NAME = $_POST['DB_NAME'];
    $DB_USER= $_POST['DB_USER'];
    $DB_PWD= $_POST['DB_PWD'];
    $DB_PRE = $_POST['DB_PRE'];
    echo $DB_HOST.$DB_USER.$DB_PWD;
    $con = mysql_connect($DB_HOST,$DB_USER,$DB_PWD);
    echo "success";/*
    if (!$con)
      {
      die('Could not connect: ' . mysql_error());
      }else{
        $text = '<?php 
            define("INSTALL_CONFIG",TRUE); 
            define("WEB_NAME","'.$name.'");
            define("DB_HOST","'.$DB_HOST.'");
            define("DB_NAME","'.$DB_NAME.'");
            define("DB_USER","'.$DB_USER.'");
            define("DB_PWD","'.$DB_PWD.'");
            define("DB_PRE","'.$DB_PRE.'"_);
        ?>';
        $fileName = "../app/conf/data.config.php";
        file_put_contents($fileName,$text);
        echo "success";
    }*/
?>